home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Test File Copy Function"
- ClientHeight = 2880
- ClientLeft = 1545
- ClientTop = 1830
- ClientWidth = 4065
- Height = 3285
- Left = 1485
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- ScaleHeight = 2880
- ScaleWidth = 4065
- Top = 1485
- Width = 4185
- Begin TextBox Text3
- Height = 495
- Left = 1320
- TabIndex = 5
- Top = 2280
- Width = 975
- End
- Begin CommandButton Command1
- Caption = "Copy File"
- Height = 375
- Left = 1320
- TabIndex = 4
- Top = 1680
- Width = 1215
- End
- Begin TextBox Text2
- Height = 495
- Left = 1320
- TabIndex = 1
- Top = 960
- Width = 2535
- End
- Begin TextBox Text1
- Height = 495
- Left = 1320
- TabIndex = 0
- Top = 240
- Width = 2535
- End
- Begin Label Label3
- Caption = "Result Code:"
- Height = 375
- Left = 480
- TabIndex = 6
- Top = 2280
- Width = 615
- End
- Begin Label Label2
- Caption = "Destination:"
- Height = 255
- Left = 120
- TabIndex = 3
- Top = 960
- Width = 1095
- End
- Begin Label Label1
- Caption = "Source:"
- Height = 255
- Left = 120
- TabIndex = 2
- Top = 240
- Width = 975
- End
- Sub Command1_Click ()
- InFile$ = Text1.Text
- OutFile$ = Text2.Text
- Result% = CopyFile(InFile$, OutFile$)
- Text3.Text = Str$(Result%)
- End Sub
- Sub Form_Click ()
- End
- End Sub
-